<?php namespace Summer\Easypay\Models;

use Model;
use Config;
use Summer\Hjd\Models\CurrencyModel;

/**
 * Model
 */
class EasypaySceneModel extends Model
{
    use \Winter\Storm\Database\Traits\Validation;
    

    /**
     * @var string The database table used by the model.
     */
    public $table = 'summer_easypay_scene';
    protected $jsonable = [
        'gateways',
        'methods'
    ];
    /**
     * @var array Validation rules
     */
    public $rules = [
    ];

    public function getGatewaysOptions(){
        return Config::get('summer.easypay::gateway');
    }
    public function getMethodsOptions(){
        return CurrencyModel::where('status',1)->pluck('title','slug');
    }
}
